package com.example.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("wm_dd")
public class DingDan {
    /**
     * 订单id
     */
    @TableId(value = "ddid", type = IdType.AUTO)
    private Integer ddid;
    /**
     * 用户id
     */
    private Integer yhid;
    /**
     * 商家id
     */
    private Integer sjid;
    /**
     * 总价
     */
    @TableField("t_price")
    private Double tPrice;
    /**
     * 订单备注
     */
    private String ddbz;
    /**
     * 订单状态
     */
    private String ddzt;
    /**
     * 订单地址
     */
    private String dddz;
    /**
     * 订单时间
     */

    /**
     * 用户手机号
     */
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ddsj;
}
